package com.xinou.daily_report.VO.fruit;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinou.common.config.jackson.annotation.XoImageSerializerAnnotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author lizhongyuan
 */
@Data
public class FruitListVO {

    @ApiModelProperty(value = "id")
    private Long id;

    private Long userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    private Long commanderId;

    @ApiModelProperty(value = "用户姓名")
    private String commanderName;

    @ApiModelProperty(value = "原因")
    private String reason;

    @ApiModelProperty(value = "发票")
    @XoImageSerializerAnnotation
    private String bill;

    @ApiModelProperty(value = "单次积分变化")
    private BigDecimal singleScore;

    @ApiModelProperty(value = "类型0表示加分，1表示减分")
    private Integer fruitType;

    private Integer state;

    @ApiModelProperty(value = "插入时间 yyyy-MM-dd HH:mm:ss", example = "2020-11-28 00:12:23", required = true)
    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime insertTime;

    private Boolean isUrge;

}
